package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {

    //新增权限
    public void add(Permission permission);

    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //id查询权限
    public Permission findById(Integer id);

    //编辑权限
    public void edit(Permission permission);

    //删除权限
    public void delete(Integer id);

    //查询所有
    public List<Permission> findAll();

    //根据角色id查询关联的权限id
    public List<Integer> findPermissionIdsByRoleId(Integer roleId);
}
